package com.cl.cloud.binlog.tableMeta;

import com.cl.cloud.binlog.binlogEntity.BinLogEntityHandle;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: liuzijian
 * @time: 2021-12-21 14:30
 */
@Data
public class TableMetaEntity {

    /**
     * 表id
     */
    private Long tableId;
    /**
     * 数据库名称
     */
    private String dbName;
    /**
     * 表名
     */
    private String tableName;
    /**
     * 含有的字段
     */
    private List<ColumnMetaData> columnMetaDataList = new ArrayList<ColumnMetaData>();
    /**
     * 表创建的sql
     */
    private String createSql;

    /**
     * 实体类类型
     */
    private Class<? extends BinLogEntityHandle> entityClass;

}
